package com.wangxinenpu.springbootdemo.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wangxinenpu.springbootdemo.dataobject.dto.user.UserListDto;
import com.wangxinenpu.springbootdemo.dataobject.model.Role;
import com.wangxinenpu.springbootdemo.dataobject.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangxinenpu.springbootdemo.dataobject.vo.user.UserVo;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author =
 * @since 2024-06-14
 */
public interface UserService extends IService<User> {

	R< Page< UserVo >> pageList( UserListDto dto );

	R< Boolean> delete( List< String> ids );

	R< UserVo> detail( String id );

	R< Boolean> savaOrUpdate( UserVo dto );

	R < List < Role > > getRoleList( String orgId );
}
